package com.ztgf.commodity.models.service;

import com.baomidou.mybatisplus.service.IService;
import com.ztgf.commodity.models.bo.CommoditySalesAttributesRelationSaveBO;
import com.ztgf.commodity.models.dto.CommoditySalesAttributesRelationDTO;
import com.ztgf.commodity.models.vo.CommoditySalesAttributesRelationVO;

import java.util.List;

public interface ICommoditySalesAttributesRelationService extends IService<CommoditySalesAttributesRelationDTO> {

    /**
     * @Description: 添加
     * @Author: chenyu.wang
     * @Params: [saveBO]
     * @Date: 2020.11.16 15:07
     */
    boolean add(CommoditySalesAttributesRelationSaveBO saveBO);

    /**
     * @Description: 根据商品id查询已选择的销售属性
     * @Author: chenyu.wang
     * @Params: [goodsId]
     * @Date: 2020.11.16 15:07
     */
    List<CommoditySalesAttributesRelationVO> queryGoodsSalesAttributes(Long goodsId);
}
